from django.urls import path
from rest_framework.routers import DefaultRouter, SimpleRouter
from . import views

router = DefaultRouter(trailing_slash=False)
router.register('user', viewset=views.UserModelViewSet, basename='user')
router.register('file', viewset=views.FileModelViewSet, basename='upload')
# urlpatterns = [path('user/login', views.UserLoginView.as_view({"post": "post"})), ]
urlpatterns = router.urls
